﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;

namespace Gfw.Web.Models.Account
{
    /// <summary>
    /// 充值查询
    /// </summary>
    public class RechargeQueryModel
    {
        /// <summary>
        /// 充值金额
        /// </summary>
        [DataType(DataType.Currency)]
        [Display(Name = "充值金额")]
        public decimal Income { get; set; }

        /// <summary>
        /// 账户余额
        /// </summary>
        [DataType(DataType.Currency)]
        [Display(Name = "账户余额")]
        public decimal Balance { get; set; }


        /// <summary>
        /// 充值日期
        /// </summary>
        [DataType(DataType.DateTime)]
        [Display(Name = "充值日期")]
        public DateTime? TradeDate { get; set; }

        /// <summary>
        /// 摘要
        /// </summary>
        [DataType(DataType.Text)]
        [Display(Name = "摘要")]
        public string TradeAbstract { get; set; }
    }


    public class RechargeQueryViewModel
    {
        [Display(Name = "充值日期")]
        public DateTime? Start { get; set; }

        [Display(Name = "至")]
        public DateTime? End { get; set; }

        public IList<RechargeQueryModel> Results { get; set; }
    }
}
